package com.patrol.utils;

import javax.servlet.http.HttpServletResponse;
/**
 * @author 房梦豪
 * @version 1.0
 * @description: TODO
 * @date 2021/8/30 13:32
 */
public class DownloadSettingUtil {
    public static void setting(HttpServletResponse response, String filename) {
        //设置下载信息
        response.setContentType("application/vnd.ms-excel");
        response.setCharacterEncoding("utf-8");
        response.setHeader("Content-disposition", "attachment;filename=" + filename + ".xlsx");
    }
}
